import { FormatMessageProps } from "@/locales"

export const columnsRemarks = (formatMessage: FormatMessageProps, pagination: any) => [
	{
		dataIndex: "serialNumber",
		title: formatMessage({ id: "member.serial_number" }),
		render: (value: any, record: any, index: any) => <p>{(pagination.pageNum - 1) * pagination.pageSize + index + 1}</p>,
		width: 150,
		align: "center",
		key: "serial_number"
	},
	{
		dataIndex: "updateAt",
		title: formatMessage({ id: "member.user_info.update_time" }),
		render: (value: any, record: any) => <p>{record.updateAt}</p>,
		width: 150,
		align: "center",
		key: "updateAt"
	},
	{
		dataIndex: "note",
		title: formatMessage({ id: "member.remarks" }),
		render: (value: any, record: any) => <p>{record.note}</p>,
		width: 150,
		align: "center",
		key: "note"
	},
	{
		dataIndex: "updateBy",
		title: formatMessage({ id: "member.user_info.note_account_number" }),
		render: (value: any, record: any) => <p>{record.updateBy}</p>,
		width: 150,
		align: "center",
		key: "updateBy"
	}
]
